package io.github.handyang.algorithms.search;

import lombok.*;

import java.util.Objects;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class TestResult {
    private String maxKey;

    private Integer maxKeyCount;

    private Integer wordCount;

    private Integer distinctWordCount;

    private Double buildSeconds;

    private Double findMaxSeconds;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TestResult that = (TestResult) o;
        return Objects.equals(maxKey, that.maxKey) &&
                Objects.equals(maxKeyCount, that.maxKeyCount) &&
                Objects.equals(wordCount, that.wordCount) &&
                Objects.equals(distinctWordCount, that.distinctWordCount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(maxKey, maxKeyCount, wordCount, distinctWordCount);
    }


}
